/**
 * All Rights Reserved , Copyright (C) 2021 , 青岛鼎信通讯股份有限公司
 *
 * MpmProjectChangeActionAuto
 * 项目立项信息变更
 *
 * 修改纪录
 * 2021-07-14 版本：1.0 wudaliang 创建。
 * @version 版本：1.0
 * @author 作者：wudaliang
 * 创建日期：2021-07-14
 */

package com.topscomm.mpm.controller.auto;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.topscomm.mpm.MpmController;
import com.topscomm.mpm.pojo.MpmProjectChangeEntity;
import com.topscomm.mpm.service.IMpmProjectChangeService;
import com.topscomm.pub.vo.ResponseResult;

public class MpmProjectChangeControllerAuto extends MpmController<MpmProjectChangeEntity, IMpmProjectChangeService> {
	/**
	 *
	 * @description:
	 * @param paraMap
	 * @return
	 * @author: wudaliang
	 * @date: 2021-07-14
	 * @modify:
	 */
	@Override
	@GetMapping(value = "/dataCodeList")
	public ResponseResult<Object> dataCodeList(@RequestParam(required = false) Map<String, Object> paraMap) {
		Map<String, Object> codeMap = new HashMap<String, Object>();
		List<Map<String, Object>> projectlevelList = datacodeCache.getCodeListMap("MpmProjectLevel", "", "sortcode");
		codeMap.put("projectlevelList", projectlevelList);
		List<Map<String, Object>> projectstateList = datacodeCache.getCodeListMap("MpmProjectState", "", "sortcode");
		codeMap.put("projectstateList", projectstateList);
		List<Map<String, Object>> mpmEndTypeList = datacodeCache.getCodeListMap("MpmEndType", "", "sortcode");
		codeMap.put("mpmEndTypeList", mpmEndTypeList);
		List<Map<String, Object>> mpmPmoChangeTypeList = datacodeCache.getCodeListMap("MpmPmoChangeType", "", "sortcode");
		codeMap.put("mpmPmoChangeTypeList", mpmPmoChangeTypeList);
		List<Map<String, Object>> mpmCeoApprovalTypeList = datacodeCache.getCodeListMap("MpmApprovalType", "", "sortcode");
		codeMap.put("mpmCeoApprovalTypeList", mpmCeoApprovalTypeList);
		List<Map<String, Object>> mpmProjectAbnormalStateList = datacodeCache.getCodeListMap("MpmProjectAbnormalState", "", "sortcode");
		codeMap.put("mpmProjectAbnormalStateList", mpmProjectAbnormalStateList);
		List<Map<String, Object>> MpmPurchasePatternList = datacodeCache.getCodeListMap("MpmPurchasePattern", "", "sortcode");
		codeMap.put("MpmPurchasePatternList", MpmPurchasePatternList);
		List<Map<String, Object>> projectSourceList = datacodeCache.getCodeListMap("ProjectSource", "", "sortcode");
		codeMap.put("projectSourceList", projectSourceList);
		// 产品线
		List<Map<String, Object>> productlinelist = datacodeCache.getCodeListMap("ProductLine", "", "sortcode");
		codeMap.put("productlineList", productlinelist);
		super.dataCodeList(paraMap);
		return ResponseResult.ok(codeMap);
	}
}

